<script setup lang="ts">
import axios from 'axios'

const getMsg = async () =>{
  let res = await  axios.get('https://api.uomg.com/api/rand.qinghua')
  console.log('异步函数res：',res)
}
// getMsg()
const res = await axios.get('https://api.uomg.com/api/rand.img3')
// const res = await axios.get('https://api.uomg.com/api/rand.qinghua')
console.log('直接异步res:', res)
</script>

<template>
  <div>
    <h2>组件1</h2>
  </div>
</template>

<style scoped></style>
